package org.locker.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.locker.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;

import java.io.Serial;

/**
 * 管理员分润记录对象 lk_dividend_record
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lk_dividend_record")
public class DividendRecord extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 分润记录
     */
    @TableId(value = "dividend_id")
    private Long dividendId;

    /**
     * 场地ID
     */
    private Long positionId;

    /**
     * 管理员ID
     */
    private Long managerId;

    /**
     * 代理商id
     */
    private Long parentManagerId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 订单价格
     */
    private BigDecimal amount;

    /**
     * 代理商分成
     */
    private BigDecimal dividendParentAmount;

    /**
     * 平台分成
     */
    private BigDecimal dividendPlatformAmount;

    /**
     * 管理员分成
     */
    private BigDecimal dividendManagerAmount;

    /**
     * 备注
     */
    private String remark;


}
